package org.jeecg.modules.word_order.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("work_Service_vo")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class WorkServiceVo {
    /**编号;UUID*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "编号;UUID")
    private String id;
    /**工单编号，工单表外键*/
    @Excel(name = "工单编号，工单表外键", width = 15)
    @ApiModelProperty(value = "工单编号，工单表外键")
    private String serviceWorkId;
    /**工单内容*/
    @Excel(name = "工单内容", width = 15)
    @ApiModelProperty(value = "工单内容")
    private String serviceContent;
    /**损坏设备*/
    @Excel(name = "损坏设备", width = 15)
    @ApiModelProperty(value = "损坏设备")
    private String serviceEquipment;
    /**工单名称*/
    @Excel(name = "工单名称", width = 15)
    @ApiModelProperty(value = "工单名称")
    private String workName;
    /**客户名称*/
    @Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String workCustomer;
    /**客户手机号*/
    @Excel(name = "客户手机号", width = 15)
    @ApiModelProperty(value = "客户手机号")
    private String workPhone;
    /**客户地址*/
    @Excel(name = "客户地址", width = 15)
    @ApiModelProperty(value = "客户地址")
    private String workAddress;
    /**工单状态，连接数据字典表，1：未分配，2：已分配 3：待处理  4：已完成*/
    @Excel(name = "工单状态，连接数据字典表，1：未分配，2：已分配 3：待处理  4：已完成", width = 15)
    @ApiModelProperty(value = "工单状态，连接数据字典表，1：未分配，2：已分配 3：待处理  4：已完成")
    @Dict(dicCode = "workDistribution_status")
    private Integer workDistribution;
    /**工单紧急程度*/
    @Excel(name = "工单紧急程度", width = 15)
    @ApiModelProperty(value = "工单紧急程度")
    @Dict(dicCode = "workUrgent_status")
    private Integer workUrgent;
    /**工单开始时间*/
    @Excel(name = "工单开始时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "工单开始时间")
    private Date workStart;
    /**工单结束时间*/
    @Excel(name = "工单结束时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "工单结束时间")
    private Date workEnd;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**是否质保期内，0，不是，1：是*/
    @Excel(name = "是否质保期内，0，不是，1：是", width = 15)
    @ApiModelProperty(value = "是否质保期内，0，不是，1：是")
    private Integer servicePeriod;
    /**是否收费，0，收费，1；不收费*/
    @Excel(name = "是否收费，0，收费，1；不收费", width = 15)
    @ApiModelProperty(value = "是否收费，0，收费，1；不收费")
    private Integer serviceCharge;
    /**默认0，人工费*/
    @Excel(name = "默认0，人工费", width = 15)
    @ApiModelProperty(value = "默认0，人工费")
    private Double serviceArtificial;
    /**默认0，车旅费*/
    @Excel(name = "默认0，车旅费", width = 15)
    @ApiModelProperty(value = "默认0，车旅费")
    private Double serviceBrigade;
    /**默认0，配件费*/
    @Excel(name = "默认0，配件费", width = 15)
    @ApiModelProperty(value = "默认0，配件费")
    private Double serviceParts;
    /**是否需要借车：0.不需要；1.需要*/
    @Excel(name = "是否需要借车：0.不需要；1.需要", width = 15)
    @ApiModelProperty(value = "是否需要借车：0.不需要；1.需要")
    @Dict(dicCode = "workVehicle_status")
    private Integer workVehicle;
    /**是否工具确认，0未确认，1，已确认*/
    @Excel(name = "是否工具确认，0未确认，1，已确认", width = 15)
    @ApiModelProperty(value = "是否工具确认，0未确认，1，已确认")
    @Dict(dicCode = "workToolConfirm_status")
    private Integer workToolConfirm;
}
